/**
 * @ProjectName:Backend
 * @Title: StatisticsServiceImpl
 * @Package com.phrp.service.impl
 * @Description:
 * @author SuShuChao
 * @date 2024/4/26 12:15
 * @version V1.0
 * Copyright (c) 2024, 2034279227@qq.com All Rights Reserved.
 */
package com.phrp.service.impl;

import com.phrp.util.returnResult.ReturnInfoEnum;
import com.phrp.dao.StatisticsDao;
import com.phrp.entity.dto.HouseStatisticsDTO;
import com.phrp.service.StatisticsService;
import com.phrp.util.returnResult.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StatisticsServiceImpl implements StatisticsService {

    @Autowired
    private StatisticsDao statisticsDao;


    @Override
    public ResponseResult houseStatistics() {
        // 获取数据库数据
        HouseStatisticsDTO houseStatisticsDTO = statisticsDao.getHouseStatistics();

        return new ResponseResult(ReturnInfoEnum.SUCCESS,houseStatisticsDTO);
    }
}
